package models

import "time"

type Book struct {
	Id             int64
	Isbn           string
	AuthorId       int64
	Author         User   `gorm:"foreignKey:AuthorId"`
	Description    string //描述
	PublisherId    int64  //出版商
	ReadingsVolume int    //阅读量
	CommentVolume  int    //评论数
}

type BookCategory struct {
	Id       int64
	Name     string
	ParentId int64
}

type BookComment struct {
	Id      int64
	BookId  int64
	UserId  int64
	User    User   `gorm:"foreignKey:UserId"`
	Content string //内容
	Created time.Time
}
